#include <iostream>
using namespace std;
const int N = 110; 
int n1,n2,n3,n4;
int a[N];
int main()
{
   int n;
   cin >> n;
   for(int i =0;i<n;i++)
   {
   	cin >> a[i];
   	if(a[i]>=0 && a[i]<=18)
   		n1++;
	else if(a[i]>=19 && a[i]<=35)
	n2++;
	else if(a[i]>=36 && a[i]<=60)
	n3++;
	else
	n4++;
   }
   printf("%.2f\n",(n1*1.0/n)*100);
   printf("%.2f\n",(n2*1.0/n)*100);
   printf("%.2f\n",(n3*1.0/n)*100);
   printf("%.2f\n",(n4*1.0/n)*100);
   
}
